﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using ProduceBasicData.Api.DTO;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Workstation
{
    /// <summary>
    /// 工位管理展示命令类
    /// </summary>
    public class GetWorkStationCommand:IRequest<ApiPaging<WorkStationDto>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int Index { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int Size { get; set; } = 5;

        /// <summary>
        /// 工位名称
        /// </summary>
        public string? WorkstationName { get; set; }
        /// <summary>
        /// 工位编码
        /// </summary>
        public string? Workstationcode { get; set; }

        /// <summary>
        /// 工位描述
        /// </summary>
        public string? Workstationdesc { get; set; }

        /// <summary>
        /// 所属产线
        /// </summary>
        public int? Productionid { get; set; }

        /// <summary>
        /// 所属工序
        /// </summary>
        public int? Processid { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        public string? CreateName { get; set; }

        /// <summary>
        /// 创建开始时间
        /// </summary>
        public DateTime? Createkstime { get; set; }

        /// <summary>
        /// 创建结束时间
        /// </summary>
        public DateTime? Createjstime { get; set; }

        /// <summary>
        /// 更新开始时间
        /// </summary>
        public DateTime? UpdateksTime { get; set; }

        /// <summary>
        /// 更新结束时间
        /// </summary>
        public DateTime? UpdatejsTime { get; set; }
    }
}
